<?php
class EventManager_Resource_Rights  extends SF_Model_Resource_Db_Table_Abstract implements EventManager_Resource_Rights_Interface
{
	/**
	 * 
	 * @var unknown_type
	 */
	protected $_acl;
	protected $_table = 'rights';
	protected $_name = 'rights';
	protected $_primary = 'rgh_id';
    /**
     * function getRights
     */
	public function getRights(){
		$select = $this->select();
		$select->from($this->_name);
		return $this->fetchAll($select);
		
	}
	
/**
	 *
	 * @return unknown_type
	 */
	public function getResourceId(){
		return 'Rights';
	}
	/**
	 *
	 * @param SF_Acl_Interface $acl
	 * @return unknown_type
	 */
	public function setAcl(SF_Acl_Interface $acl){
		return $this->_acl = $acl;

	}
	/**
	 *
	 * @return unknown_type
	 */
	public function getAcl(){
		return $this->_acl;
	}
}